//
//  NFSShopCarsViewController.m
//  NeedForSpeed
//
//  Created by 王国强 on 15/10/19.
//  Copyright © 2015年 Avenger. All rights reserved.
//

#import "NFSShopCarsViewController.h"

#import "BaseHeader.h"

@interface NFSShopCarsViewController ()<UIWebViewDelegate>

@property(nonatomic,strong)UIWebView *shopWebView;

@end

@implementation NFSShopCarsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.view setBackgroundColor:[UIColor whiteColor]];
    [self createWebView];
}
//创建 WebView
-(void)createWebView
{
    _shopWebView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    [self.view addSubview:_shopWebView];
    _shopWebView.delegate =self;
    [_shopWebView.scrollView setBounces:NO];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:_address]];
    [_shopWebView loadRequest:request];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
